<template>
	<view class="callBack">
		<view>
			<view
				><u-alert-tips
					type="success"
					:title="title"
					:description="description"
				></u-alert-tips
			></view>
			<view style="margin-top: 50rpx">
				<u-button type="success" @click="handlerNav">立即跳转</u-button></view
			>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			title: '提交成功',
			description: '即将在 5秒 后跳转到首页',
		}
	},
	methods: {
		handlerNav() {
			this.$router.switchTab({
				url: '/pages/index/index',
			})
		},
	},
	onShow() {
		setTimeout(() => {
			this.handlerNav()
		}, 5000)
	},
}
</script>

<style lang="scss">
page {
	height: 100%;
}
.callBack {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
</style>